Skip to content

Refresh corrected note content immediately - #7061

Merged
ComputelessComputer merged 1 commit into
mainfrom
fix/immediate-editor-refresh
Aug 24, 2026
Merged

Refresh corrected note content immediately#7061
ComputelessComputer merged 1 commit into
mainfrom
fix/immediate-editor-refresh

Conversation

@ComputelessComputer

@ComputelessComputer ComputelessComputer commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Apply deferred external content as soon as editor focus moves away, with regression coverage.


Note

Low Risk
Small editor-sync tweak with a regression test. Risk is limited to content replacement timing on blur, not auth or persistence.

Overview
External initialContent updates that arrive while the note editor is focused now apply as soon as focus leaves, instead of waiting for a later prop change.

syncContent registers a one-time blur listener when replacement is skipped due to focus, and removes it on effect cleanup. The test now blurs the editor and asserts the document switches from "old" to "new".

Reviewed by Cursor Bugbot for commit 4a13d6a. Bugbot is set up for automated code reviews on this repo. Configure here.

@netlify

netlify Bot commented Aug 24, 2026

Copy link
Copy Markdown

Deploy Preview for anarlog canceled.

Name Link
🔨 Latest commit d1f641d
🔍 Latest deploy log https://app.netlify.com/projects/anarlog/deploys/6a8c331e080e740008fc66ad

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 4a13d6a. Configure here.

Comment thread packages/editor/src/note/index.tsx
Apply deferred external content as soon as editor focus moves away, with regression coverage.
@ComputelessComputer
ComputelessComputer force-pushed the fix/immediate-editor-refresh branch from 4a13d6a to d1f641d Compare August 24, 2026 12:03
@ComputelessComputer
ComputelessComputer merged commit 019c423 into main Aug 24, 2026
11 checks passed
@ComputelessComputer
ComputelessComputer deleted the fix/immediate-editor-refresh branch August 24, 2026 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant